
import java.util.ArrayList;
import java.util.List;

public abstract class Subject_old {

	private List<Observer> obs;
	private Document doc;

	public Subject_old() {
		this.obs = new ArrayList<Observer>();
		this.doc = new Document("DefaultName");
	}

	void Attach(Observer obs) {
		this.obs.add(obs);
	}


	void Detach(Observer_old obs) {
		this.obs.remove(obs);
	}


	void Notify() {
		for (Observer obs : this.obs) {
			//obs.Update(this);
		}
	}


	Document getDoc() {
		return this.doc;
	}


	void setDoc(Document doc) {
		this.doc = doc;
	}
}

